<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

</body>
<script>
  // 数组解构赋值  和 对象解构赋值

  // 传统的写法
  var arr = [1, 2, 3];
  var a = arr[0];
  var b = arr[1];
  var c = arr[2];

  var obj = {
    a: 1,
    b: 2,
    c: 3
  }
  var a = obj.a;
  var b = obj.b;
  var c = obj.c;





</script>

</html>